<?php
/**
 * Created by PhpStorm.
 * User: dumbledore
 * Date: 2018/3/12
 * Time: 上午9:52
 */
?>
<!DOCTYPE html>
<html>
<head>
    <!--[if lt IE 7]>
    <div class="ie6_error">还在用<strong>漏洞百出的IE6浏览器</strong>么？为了您的网络安全，请升级浏览器 <a target="_blank"
                                                                               href="http://browsehappy.com">立即升级</a>
    </div>
    <![endif]-->

    <meta charset="utf-8">
    <title>首页-文具1号</title>
    <meta name="description"
          content="文具1号作为上海办公用品供货商公司,专为世界500强企业及SOHO办公族提供网上商城一站式办公耗材批发及采购服务,一站式选购办公日用文具用品,厂家直销,好货又便宜【阳光采购就上文具1号 阳光价格 老板放心 品质保障 员工省力】"/>
    <meta name="keywords" content="办公用品,办公文具,办公文具网站,文具网站,办公用品网,文具采购网,金万年"/>
    <meta name="copyright" content="上海易推信息科技有限公司"/>
    <meta name="renderer" content="webkit">
    <base href="<?php echo base_url(); ?>"/>
    <link rel="shortcut icon" href="favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="public/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/index.css"/>
    <link type="text/css" rel="stylesheet" href="public/css/owl.carousel.css">
    <link type="text/css" rel="stylesheet" href="public/css/owl.theme.css">

    <!--[if lte IE 9]>
    <script type="text/javascript" src="public/js/html5shiv-printshiv-3.js"></script>
    <![endif]-->
</head>
<body>
<!--common - head -->
<?php $this->load->view('common/header.php'); ?>
<!--common - head end-->

<!--隐藏 添加 class  none-->
<div class="pop pop-adjustment-budget pop-new-cost-center bg-padding-inside " style="width:520px; height: auto">
    <a href="javascript:;" class="close bg-btn_close_n"></a>
    <p class="top-tit">
        <span class="bg-logo_popup"></span>
    </p>
    <div class="cont">
        <p class="tit"><?php echo $username; ?>，您好！</p>
        <p class="intro" style="height: 70px;font-size: 14px;">
            您当前账号是由上级账户<?php echo $parent_name; ?>创建 ,<br/>请确认是否激活该账号！<br>
            激活后请及时进入个人中心修改密码！
        </p>
        <div class="btn-box">
            <a href="javascript:;" id="activation" class="btn-submit">激活</a>
            <a href="javascript:void(0);" id="cancel" onclick="logout();" class="btn-cancel">取消</a>
        </div>
    </div>
</div>
<?php $this->load->view('common/bottom.php'); ?>
<script type="text/javascript" src="public/js/jquery.min.js"></script>
<script type="text/javascript" src="public/js/index.js"></script>
<script type="text/javascript" src="public/js/owl.carousel.min.js"></script>
<script type="text/javascript">
    // $("#cancel").on('click', function () {
    //     window.location.href = 'index';
    // })
    $("#activation").on('click', function () {
        $.ajax({
            type: "POST",
            url: "manager_user/insure_activation",
            data: '',
            dataType: "json",
            success: function (data) {
                if (data.code == 0) {
                    window.location.href = 'index';
                } else {
                    layer.alert("错误");
                }
            }
        });
    })
</script>


</body>
</html>